class UpdateTerminalsCountInTerminalGroup < ActiveRecord::Migration
  def up
    TerminalGroup.reset_column_information
    TerminalGroup.find_each do |u|
      TerminalGroup.reset_counters u.id, :terminals
    end
  end

  def down
  end
end
